using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace MSU_Broker
{
    public class MSU_User : IMSU_User
    {
        #region Moodle_Atributes

        /*$this->id=0;
		$this->confirmed=0;
		$this->policyagreed=0;
		$this->deleted=0;
		$this->username='';
		$this->idnumber='';
		$this->firstname='';
		$this->lastname='';
		$this->email='';
		$this->icq='';
		$this->skype='';
		$this->yahoo='';
		$this->aim='';
		$this->msn='';
		$this->phone1='';
		$this->phone2='';
		$this->institution='';
		$this->department='';
		$this->address='';
		$this->city='';
		$this->country='';
		$this->lang='';
		$this->timezone=0;
		$this->lastip='';
		$this->description='';
		$this->role=0;*/

        #endregion

        #region Atributes()

        private string userName;
        private string firstName;
        private string lastName;
        private string email;
        private string phone1;
        private string phone2;
        private string address;
        private string city;
        private string country;
        private string description;
        private string moodle_client;
        private string moodle_sessionkey;

        #endregion

        #region Properties()

        public string FirstName
        {
            get { return firstName; }
            set { firstName = value; }
        }
        public string LastName
        {
            get { return lastName; }
            set { lastName = value; }
        }
        public string UserName
        {
            get { return userName; }
            set { userName = value; }
        }
        public string Email
        {
            get { return email; }
            set { email = value; }
        }
        public string Phone1
        {
            get { return phone1; }
            set { phone1 = value; }
        }
        public string Phone2
        {
            get { return phone2; }
            set { phone2 = value; }
        }
        public string Address
        {
            get { return address; }
            set { address = value; }
        }
        public string City
        {
            get { return city; }
            set { city = value; }
        }
        public string Country
        {
            get { return country; }
            set { country = value; }
        }
        public string Description
        {
            get { return description; }
            set { description = value; }
        }
        public string Moodle_Client
        {
            get { return moodle_client; }
            set { moodle_client = value; }
        }
        public string Moodle_SessionKey
        {
            get { return moodle_sessionkey; }
            set { moodle_sessionkey = value; }
        }

        #endregion

        #region Constructors

        public MSU_User()
        {
            this.userName = "";
            this.firstName = "";
            this.lastName = "";
            this.userName = "";
            this.email = "";
            this.phone1 = "";
            this.phone2 = "";
            this.city = "";
            this.country = "";
            this.description = "";
            this.moodle_client = "";
            this.moodle_sessionkey = "";
        }

        public bool IsEmpty()
        {
            return ((this.userName.Length == 0) &&
                    (this.firstName.Length == 0) &&
                    (this.lastName.Length == 0) &&
                    (this.userName.Length == 0) &&
                    (this.email.Length == 0) &&
                    (this.phone1.Length == 0) &&
                    (this.phone2.Length == 0) &&
                    (this.city.Length == 0) &&
                    (this.country.Length == 0) &&
                    (this.description.Length == 0) &&
                    (this.moodle_client.Length == 0) &&
                    (this.moodle_sessionkey.Length == 0));
        }

        public MSU_User(string FirstName, string LastName, string UserName, string Email, string Phone1,
            string Phone2, string Address, string City, string Country, string Description,
            string Moodle_Client, string Moodle_SessionKey)
        {
            this.firstName = FirstName;
            this.lastName = LastName;
            this.userName = UserName;
            this.email = Email;
            this.phone1 = Phone1;
            this.phone2 = Phone2;
            this.city = City;
            this.address = Address;
            this.country = Country;
            this.description = Description;
            this.moodle_client = Moodle_Client;
            this.moodle_sessionkey = Moodle_SessionKey;

        }

        #endregion

    }
}
